package com.woniuxy.book.service;

import com.woniuxy.book.service.dto.BookTypeTreeDTO;
import com.woniuxy.book.entity.BookType;
import com.woniuxy.book.entity.PageInfo;
import com.woniuxy.book.param.booktype.AddBookTypeParam;
import com.woniuxy.book.param.booktype.SelectBookTypeParam;
import com.woniuxy.book.param.booktype.UpdateBookTypeParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author li
 * @since 2024年2月09日
 */
public interface BookTypeService{

    void addBookType(AddBookTypeParam toBean);

    void enableBookType(Integer typeId);

    void disableBookType(Integer typeId);

    void updateBookType(UpdateBookTypeParam toBean);

    PageInfo selectBookType(SelectBookTypeParam toBean);

    List<BookTypeTreeDTO> selectBookTypeTree(Integer typeState);

    void deleteBookType(Integer typeId);

    List<BookType> selectAllSelf();

    void undeleteBookType(Integer typeId);

    List<Integer> findTypeArray(Integer parentId);
}
